
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Collections;
using System.Data;
using System.Xml;


using Swaf.Container;

namespace Swaf.DataAccess
{
	/// <summary>
	/// Summary description for WebServiceRequest.
	/// </summary>
	public class WebServiceRequest : IDataRequest, INameAddressSupport, ICatalogItem
	{
		protected string m_url;
		protected string m_body;

		public WebServiceRequest(XmlElement req, string catalogName)
		{

		}

		public IDataResponse execute(INameAddressSupport info)
		{
			// TODO:  Add WebServiceRequest.execute implementation
			return null;
		}

		IDataResponse Swaf.DataAccess.IDataRequest.execute(IDictionary info)
		{
			// TODO:  Add WebServiceRequest.Swaf.DataAccess.IDataRequest.execute implementation
			return null;
		}

		public bool containsField(string nameAddress)
		{
			// TODO:  Add WebServiceRequest.containsField implementation
			return false;
		}

		public bool isGetOnly
		{
			get
			{
				return true;
			}
		}

		public Swaf.Container.XmlSerializationSupport SerializationSupport
		{
			get
			{
				// TODO:  Add WebServiceRequest.SerializationSupport getter implementation
				return new Swaf.Container.XmlSerializationSupport ();
			}
		}

		public void put(string nameAddress, object val, object extraInfo)
		{
			// TODO:  Add WebServiceRequest.put implementation
		}

		void Swaf.Container.INameAddressSupport.put(string nameAddress, object val)
		{
			// TODO:  Add WebServiceRequest.Swaf.Container.INameAddressSupport.put implementation
		}

		public string getXml(string options)
		{
			// TODO:  Add WebServiceRequest.getXml implementation
			return null;
		}

		public object get(string nameAddress, object oneArg)
		{
			return this.get(nameAddress, new object[]{oneArg});
		}

		public object get(string nameAddress)
		{
			return this.get(nameAddress, new object[]{});
		}

		public object get(string nameAddress, params object[] infoArgs)
		{
			// TODO:  Add WebServiceRequest.get implementation
			return null;
		}

		public string Xml
		{
			get
			{
				// TODO:  Add WebServiceRequest.Xml getter implementation
				return null;
			}
		}
		#region ICatalogItem Members
		protected string m_catalogName=null;
		protected string m_expiration=null;
		protected string m_key=null;
		protected string m_searchPath=null;

		public string catalogName
		{
			get
			{
				return m_catalogName;
			}
			set
			{
				m_catalogName=value;
			}
		}

		public string expiration
		{
			get
			{
				return m_expiration;
			}
			set
			{
				m_expiration=value;
			}
		}

		public string key
		{
			get
			{
				return m_key;
			}
			set
			{
				m_key=value;
			}
		}

		public string searchPath
		{
			get
			{
				return m_searchPath;
			}
			set
			{
				m_searchPath=value;
			}
		}

		public bool isCacheable
		{
			get { return true; }
		}

		#endregion
		public IEnumerator GetEnumerator() { return null; }
	}
}
